<template>
  <div>
    <p>t1</p>
    {{ a }}
    <el-button @click="CHANGE_A">修改a</el-button>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  methods: {},
  computed: {
    ...mapState(["a"]),
    // a() {
    //   return this.$store.state.a;
    // },
  },
  methods: {
    ...mapMutations(["CHANGE_A"]),
    // changeA() {
    //   this.$store.commit("CHANGE_A");
    // },
  },
};
</script>

<style lang="less" scoped>
</style>